package com.huawei.hwCloudJs.service.locationapi;

import android.util.Log;
import com.baidu.location.BDLocation;
import com.baidu.location.BDLocationListener;

public class b implements BDLocationListener {
    private static final String b = "JsLocationListenner";
    a a;

    public interface a {
        void a(BDLocation bDLocation);
    }

    public b(a aVar) {
        this.a = aVar;
    }

    public void onReceiveLocation(BDLocation bDLocation) {
        if (bDLocation == null) {
            Log.i(b, "location is null");
            return;
        }
        Log.i(b, "onReceiveLocation ok");
        this.a.a(bDLocation);
    }
}
